package com.zhangtao.demo.common.dto;

import java.util.StringJoiner;

public class WebSocketCommand {
    private String command;
    private long requestTime;
    private String value;

    public String getCommand() {
        return command;
    }

    public void setCommand(String command) {
        this.command = command;
    }

    public long getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(long requestTime) {
        this.requestTime = requestTime;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", "{", "}")
                .add("command:'" + command + "'")
                .add("requestTime:" + requestTime)
                .add("value:'" + value + "'")
                .toString();
    }
}
